package com.duing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.duing.entity.User;
import com.duing.vo.UserBean;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
   @Select("SELECT COUNT(name) AS cnt, age FROM user GROUP BY age")
   List<UserBean>selectGroupByAge();
}
